import request from '@/utils/request'

// 查询补卡申请列表
export function listHumanReplace(query) {
  return request({
    url: '/oa/humanReplace/list',
    method: 'get',
    params: query
  })
}

// 查询补卡申请详细
export function getHumanReplace(id) {
  return request({
    url: '/oa/humanReplace/' + id,
    method: 'get'
  })
}

// 新增补卡申请
export function addHumanReplace(data) {
  return request({
    url: '/oa/humanReplace',
    method: 'post',
    data: data
  })
}

// 修改补卡申请
export function updateHumanReplace(data) {
  return request({
    url: '/oa/humanReplace',
    method: 'put',
    data: data
  })
}

// 删除补卡申请
export function delHumanReplace(id) {
  return request({
    url: '/oa/humanReplace/' + id,
    method: 'delete'
  })
}
